package com.ck.model.common;

/**
 * 場景中屏
 *
 * @author linq
 */
public class SceneMiddle {
    private Long sceneMiddleId;
    /**
     * 场景版本号（唯一版本号）
     */
    private String sceneVersion;
    /**
     * 图片地址或视频地址
     */
    private String url;
    /**
     * MD5
     */
    private String md5;
    /**
     * 文件大小（单位:字节）
     */
    private Integer size;
    /**
     * 播放时长(秒)
     */
    private Integer duration;
    /**
     * 类型（0：视频，1：图片）
     */
    private Integer type;
    /**
     * 素材名称
     */
    private String name;
    /**
     * 素材id
     */
    private Long sourceId;

    public SceneMiddle() {
    }

    public SceneMiddle(Long sceneMiddleId, String sceneVersion, String url, String md5, Integer size, Integer duration, Integer type, String name, Long sourceId) {
        this.sceneMiddleId = sceneMiddleId;
        this.sceneVersion = sceneVersion;
        this.url = url;
        this.md5 = md5;
        this.size = size;
        this.duration = duration;
        this.type = type;
        this.name = name;
        this.sourceId = sourceId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getSceneMiddleId() {
        return sceneMiddleId;
    }

    public void setSceneMiddleId(Long sceneMiddleId) {
        this.sceneMiddleId = sceneMiddleId;
    }

    public String getSceneVersion() {
        return sceneVersion;
    }

    public void setSceneVersion(String sceneVersion) {
        this.sceneVersion = sceneVersion == null ? null : sceneVersion.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5 == null ? null : md5.trim();
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    @Override
    public String toString() {
        return "SceneMiddle{" +
                "sceneMiddleId=" + sceneMiddleId +
                ", sceneVersion='" + sceneVersion + '\'' +
                ", url='" + url + '\'' +
                ", md5='" + md5 + '\'' +
                ", size=" + size +
                ", duration=" + duration +
                ", type=" + type +
                ", name='" + name + '\'' +
                ", sourceId=" + sourceId +
                '}';
    }
}